package com.example.chatchatbackend.entity.vo.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MessageVO {
    Integer id;
    int sendId;
    int toId;
    String message;
    Integer isRespond;
    Integer isRobot;

    public MessageVO(Integer id, Integer sendId, Integer toId, String message, Integer isRespond) {
        this.id = id;
        this.sendId = sendId;
        this.toId = toId;
        this.message = message;
        this.isRespond = isRespond; // 将参数 i 赋值给类的属性
    }


    public MessageVO(Integer id, Integer sendId, Integer toId, String message, int isRespond) {
        this.id = id;
        this.sendId = sendId;
        this.toId = toId;
        this.message = message;
        this.isRespond = isRespond; // 将参数 i 赋值给类的属性
    }


    public MessageVO(Integer id, int sendId, int toId, String message) {
        this.id = id;
        this.sendId = sendId;
        this.toId = toId;
        this.message = message;
    }


}
